package com.easy.mapper;

import com.easy.bean.Itinerary;
import com.easy.bean.Itinerary_detail;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Itinerary_detailDao {
    int add(@Param("param") Itinerary_detail itinerary_detail);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Itinerary_detail itinerary_detail);
    Itinerary_detail one(@Param("id") Integer id);
    List<Itinerary_detail> all(@Param("param") Itinerary_detail itinerary_detail);
    int pageCount(@Param("param") Itinerary_detail itinerary_detail);
    List<Itinerary_detail> page(@Param("page") Page page, @Param("param") Itinerary_detail itinerary_detail);
    int pageCountWithDetails(@Param("param") Itinerary_detail itinerary_detail);
    List<Itinerary_detail> pageWithDetails(@Param("page") Page page, @Param("param") Itinerary_detail itinerary_detail);
}
